package create.rpc.exception;


import create.rpc.enumeration.RpcError;

public class RpcException extends RuntimeException{
    public RpcException(RpcError error, String detail){
        super(error.getMessage()+": "+detail);
    }

    public RpcException(String mesage,Throwable cause)
    {
        super(mesage,cause);
    }

    public RpcException(RpcError error)
    {
        super(error.getMessage());
    }
}
